<?php
/**
 * This file is form http://findcat.cn
 *
 * @link     https://findcat.cn
 * @email    1476982312@qq.com
 */
namespace Blog\Seeder\Admin\Test;

use Carbon\Carbon;
use App\Models\ArticleTag;
use Illuminate\Database\Seeder;

class ArticleTagsTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run()
    {
        $data = [
            [
                'article_id'                => 1,
                'tag_id'                    => 1,
                'created_at'                => Carbon::now(),
                'updated_at'                => Carbon::now(),
            ],
            [
                'article_id'                => 1,
                'tag_id'                    => 2,
                'created_at'                => Carbon::now(),
                'updated_at'                => Carbon::now(),
            ],
            [
                'article_id'                => 1,
                'tag_id'                    => 3,
                'created_at'                => Carbon::now(),
                'updated_at'                => Carbon::now(),
            ],
            [
                'article_id'                => 1,
                'tag_id'                    => 4,
                'created_at'                => Carbon::now(),
                'updated_at'                => Carbon::now(),
            ],
            [
                'article_id'                => 1,
                'tag_id'                    => 5,
                'created_at'                => Carbon::now(),
                'updated_at'                => Carbon::now(),
            ],
        ];

        ArticleTag::query()->insert($data);
    }
}
